package com.gitee.fdc.mongo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration;


@SpringBootApplication//(exclude = EmbeddedMongoAutoConfiguration.class)
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}

//	@Bean 
//	public CommandLineRunner init(AuthorRepository authorRepository, BookRepository bookRepository) {
//		return (args) -> {
//			Book ci = new Book("Continous Integration", new Date());
//			bookRepository.save(ci);
//
//			Author julius = new Author("Julius");
//			julius.setBooks(Stream.of(ci).collect(Collectors.toSet()));
//			authorRepository.save(julius);
//		};
//	}
}
